package com.yizhuoyan.his.webapi.controller.registrar.vo;

import com.yizhuoyan.his.entity.HosRegistrationLevelEntity;
import lombok.Data;

@Data
public class RegistrationLevelVo {
    private Long id;
    private String code;
    private String name;
    private Integer showOrder;
    private Integer fee;
    private Integer quota;
    public static RegistrationLevelVo of(HosRegistrationLevelEntity e){
        RegistrationLevelVo RegistrationLevelVo = new RegistrationLevelVo();
        RegistrationLevelVo.setId(e.getId());
        RegistrationLevelVo.setCode(e.getCode());
        RegistrationLevelVo.setName(e.getName());
        RegistrationLevelVo.setShowOrder(e.getShowOrder());
        RegistrationLevelVo.setFee(e.getFee());
        RegistrationLevelVo.setQuota(e.getQuota());
        return RegistrationLevelVo;
    }
}
